package com.example.demo.controller;

import org.apache.commons.collections.functors.TruePredicate;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.alibaba.druid.stat.TableStat.Mode;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel; 
import springfox.documentation.annotations.ApiIgnore;

@Api(tags = "静态路由" , hidden = true )
@ApiIgnore
@Controller
public class StaticResourcesController {

	 @RequestMapping("/index.html")
	 public String index() {
		 return "modules/index";
	 }
	 
	 @RequestMapping(value = {"/","login.html"})
	 public String login(Model model) {		 
		 model.addAttribute("userName","demo");	
		 model.addAttribute("password","1234");
		 return "modules/login";
	 }
	
}
